package org.com.behavioralPattern.visitorPattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/27 18:11
 */
public class Harddisk extends Hardware {

    public Harddisk(String type){
        super(type);
    }

    @Override
    public void run() {
        System.out.println("型号为："+type+"的硬盘正在运行");
    }

    @Override
    public void accept(ComputerVisitor computervisitor) {
        computervisitor.vistHarddisk(this);
    }
}
